package lb.io.object;

import lb.io.apimachinery.runtime.scheme.GroupVersionKind;

public enum Resource {
    NodeV1(new GroupVersionKind(API.SystemV1.toString(), Kind.Node.toString())),
    ComponentV1(new GroupVersionKind(API.SystemV1.toString(), Kind.Component.toString())),
    LbletV1(new GroupVersionKind(API.SystemV1.toString(), Kind.Lblet.toString())),
    PodV1(new GroupVersionKind(API.CoreV1.toString(), Kind.Pod.toString()));

    private GroupVersionKind gvk;

    Resource(GroupVersionKind gvk) {
        this.gvk = gvk;
    }

    public GroupVersionKind getGvk() {
        return gvk;
    }

    public void setGvk(GroupVersionKind gvk) {
        this.gvk = gvk;
    }

    @Override
    public String toString() {
        return gvk.toString();
    }
}
